<!DOCTYPE html>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.5; user-scalable=1;" />

    <title><?php echo $title_prefix.$title; ?></title>
    <base href="<?php echo $base; ?>" />
    <link rel="shortcut icon" href="<?php echo $icon; ?>" />

    <?php if ($description) { ?>
        <meta name="description" content="<?php echo $description; ?>" />
    <?php } ?>
    <?php if ($keywords) { ?>
        <meta name="keywords" content="<?php echo $keywords; ?>" />
    <?php } ?>

    <link rel="stylesheet" type="text/css" href="<?php echo $base.$template; ?>css/reset.css">
    <link rel="stylesheet" type="text/css" href="<?php echo $base.$template; ?>css/styles-mobile.css">
    <link rel="stylesheet" type="text/css" href="<?php echo $base.$template; ?>css/jquery.mmenu.css"/>

    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="<?php echo $base.$template; ?>js/jquery.mmenu.min.all.js"></script>
    <script type="text/javascript" src="<?php echo $base.$template; ?>js/cart.js"></script>

	<script type="text/javascript">
        $(function() {
            $('nav#menu-left').mmenu();
        });
	</script>
</head>
<body>
<div id="page">
    <!--Begin #header-->
    <div id="header" class="mm-fixed-top">
        <?php if(isset($checkout_url) && $checkout_url){ ?>
            <a href="<?php echo $checkout_url ?>" class="bntMenuleft"><img src="<?php echo $template ?>images/bntBack.png"></a>
        <?php }else{ ?>
            <a href="#menu-left" class="bntMenuleft"><img src="<?php echo $template ?>images/bntMenuleft.png"></a>
        <?php } ?>
        <p class="titlePage"><?php echo $title ?></p>
        <a class="bntShoppingbag"<?php echo (isset($cart_url) && $cart_url) ? ' href="'.$cart_url.'"' : '' ?>>
            <img src="<?php echo $template ?>images/bntShoppingbag.png">
            <div class="circle-text"><div id="cart_total"><?php echo $cart_items ?></div></div>
        </a>
    </div>
    <!--#header-->